package com.itasura.valobj;

/**
 * @author sailor wang
 * @date 2018/9/28 下午5:55
 * @description
 */
public class FoodStats {
    private int vitamin;

    private int protein;

    private int carotene;

    public FoodStats(int vitamin, int protein, int carotene) {
        this.vitamin = vitamin;
        this.protein = protein;
        this.carotene = carotene;
    }

    public static FoodStats valueOf(int vitamin, int protein, int carotene){
        return new FoodStats(vitamin,protein,carotene);
    }

    public int getVitamin() {
        return vitamin;
    }

    public void setVitamin(int vitamin) {
        this.vitamin = vitamin;
    }

    public int getProtein() {
        return protein;
    }

    public void setProtein(int protein) {
        this.protein = protein;
    }

    public int getCarotene() {
        return carotene;
    }

    public void setCarotene(int carotene) {
        this.carotene = carotene;
    }

    @Override
    public String toString() {
        return "FoodStats{" +
                "vitamin=" + vitamin +
                ", protein=" + protein +
                ", carotene=" + carotene +
                '}';
    }
}